﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_BdOrder_Default" %>
<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
<title>订单管理</title>
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" runat="Server">

 
           <asp:DropDownList ID="ddlHostName" runat="server" Field="hostname" Opt="=" Width="160px"></asp:DropDownList>
           模糊查询
  <asp:TextBox runat="server" ID="txtAll" Field="Receiver,ProductStruct,Mobile,ReceiverTel,OrderNO" Opt="%" ToolTip="客户姓名，产品，电话，订单编号">
    </asp:TextBox>
 订单日期
    <asp:TextBox ID="fromData" runat="server" Field="OrderDate" Opt="&#62;=" onFocus="GetMaxDate('toData','yyyy-MM-dd HH:mm:ss');" 
        ClientIDMode="Static" Width="130">
       
    </asp:TextBox>
    
    至
    <asp:TextBox ID="toData" runat="server" Field="OrderDate" Opt="&#60;=" onFocus="GetMinDate('fromData','yyyy-MM-dd HH:mm:ss');"
        ClientIDMode="Static" Width="130">
    </asp:TextBox>
     价格
     <asp:TextBox runat="server" ID="bdOrder_AmountBegin" Field="Amount" Opt="&#62;="  Width="30">
    </asp:TextBox>
    至
       <asp:TextBox runat="server" ID="bdOrder_AmountEnd" Field="Amount" Opt="&#60;="  Width="30">
    </asp:TextBox>

    每页显示 <asp:TextBox runat="server" ID="txtPageSize" Text="20"  Width="50" >
    </asp:TextBox>

</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" >
        <Columns>
		<asp:TemplateField  ItemStyle-Width="50">
            <HeaderTemplate>
                <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                    for="cbhALL"></label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="cbItem" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>	
        <asp:BoundField DataField="hostname" SortExpression="hostname" HeaderText="网站" />	
        <asp:TemplateField SortExpression="OrderDate" HeaderText="下单时间"><ItemTemplate><%# Eval("OrderDate")%></ItemTemplate><EditItemTemplate><asp:TextBox runat="server" ID="BdOrderInfo_OrderDate" onclick="WdatePicker();" Text='<%# Eval("OrderDate")%>' /></EditItemTemplate> </asp:TemplateField>			
        <asp:BoundField DataField="OrderNO" SortExpression="OrderNO" HeaderText="订单编号" />		
		<asp:BoundField DataField="ProductStruct" SortExpression="ProductStruct" HeaderText="产品" />		
		<asp:BoundField DataField="Quantity" SortExpression="Quantity" HeaderText="数量" />		
		<asp:BoundField DataField="Amount" SortExpression="Amount" HeaderText="金额" />		
		<asp:BoundField DataField="Receiver" SortExpression="Receiver" HeaderText="客户姓名" />		
		<asp:BoundField DataField="Mobile" SortExpression="Mobile" HeaderText="手机" />		
		<asp:BoundField DataField="ReceiverTel" SortExpression="ReceiverTel" HeaderText="座机" />	
        <asp:BoundField DataField="Province" SortExpression="Province" HeaderText="省" />
        <asp:BoundField DataField="ReceiverAddress" SortExpression="ReceiverAddress" HeaderText="客户地址" />
        
		
		<asp:CommandField ShowEditButton="true" EditText="编辑" HeaderText="编辑" ItemStyle-Width="80" />
        <asp:TemplateField HeaderText="删除" ItemStyle-Width="50">
        <ItemTemplate>
        <asp:LinkButton ID="lbDelete" Text="删除" CausesValidation="true" CommandName="Delete"
                    OnClientClick="return confirm('确定删除吗？');" runat="server">
        </asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:HyperLinkField HeaderText="修改" Text="修改" DataNavigateUrlFields="ManageEditURI"
            ItemStyle-Width="50" />			
        </Columns>
    </asp:GridView>
</asp:Content>
